package com.zenith.middleware.po.dto.edu;

import com.zenith.common.base.BaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(name = "EduAssignmentDTO", description = "作业DTO")
public class EduAssignmentDTO extends BaseDTO {
    
    @Schema(description = "主键ID")
    private Long id;
    
    @Schema(description = "作业标题")
    private String title;
    
    @Schema(description = "作业描述")
    private String description;
    
    @Schema(description = "所属课程ID")
    private Long courseId;
    
    @Schema(description = "所属章节ID")
    private Long chapterId;
    
    @Schema(description = "截止时间")
    private Date deadline;
    
    @Schema(description = "作业类型：1-在线答题 2-文件上传")
    private Integer type;
    
    @Schema(description = "总分")
    private Integer totalScore;
    
    @Schema(description = "状态：1-发布 2-关闭")
    private Integer status;
    
    @Schema(description = "扩展信息（JSON）")
    private String extJson;
}